<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @see     https://www.hyperf.io
 *
 * @document https://hyperf.wiki
 *
 * @contact  group@hyperf.io
 *
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use Hyperf\HttpServer\Router\Router;

Router::addRoute(['GET', 'POST', 'HEAD'], '/', [App\Controller\IndexController::class, 'index']);

Router::addRoute(['GET', 'POST', 'HEAD'], '/health', [App\Controller\IndexController::class, 'health']);
Router::addRoute(['GET', 'POST', 'HEAD'], '/test', [App\Controller\IndexController::class, 'test']);

Router::get('/favicon.ico', function () {
    return '';
});
